#include <stdio.h>

int main(int argc, char *argv[])
{
    int arr[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};

    int arr_size = sizeof(arr) / sizeof(arr[0]);
    int min = 0;
    int max = arr_size - 1;

    printf("arrsize:%d\n", arr_size);

    for (int i = 0; i < arr_size; i++) {
        printf("%d ", arr[i]);
    }

    putchar('\n');

    while(min < max) {
        int tmp = arr[min];
        arr[min] = arr[max];
        arr[max] = tmp;

        min++;
        max--;
    }

    for (int i = 0; i < arr_size; i++) {
        printf("%d ", arr[i]);
    }


    putchar('\n');

    return 0;
}
